﻿<%@ Page Language="C#" MasterPageFile="~/aspnet/admin/ForValidation.master" AutoEventWireup="true" CodeFile="CX_ill_Edit.aspx.cs" Inherits="aspnet_admin_bock_ill_CX_ill_Edit" Title="显示病历信息 Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr>
            <td align="center" class="topbg" colspan="2" style="height: 30px">
                <strong>显示病历管理</strong></td>
        </tr>
        <tr>
            <td class="tdbg" style="width: 223px; height: 27px">
                提示信息:</td>
            <td class="tdbg" style="width: 787px; height: 27px">
                <asp:Label ID="tt" runat="server" CssClass="font-4"></asp:Label>
            </td>
        </tr>
    </table>
        <br />
    
        <table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr>
            <td align="center" class="topbg" colspan="2" style="height: 30px">
                显示病历信息</td>
        </tr>
        <tr>
            <td class="tdbg" >
              <div>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SqlConn %>" 
        SelectCommand="SELECT * FROM [CX_ill] WHERE ([CX_ill_id] = @CX_ill_id)" 
        OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:querystringparameter Name="CX_ill_id" QueryStringField="id" 
                Type="Decimal" />
        </SelectParameters>
    </asp:SqlDataSource>

    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
        CellPadding="2" DataKeyNames="CX_ill_id" DataSourceID="SqlDataSource2" 
        Width="100%" CellSpacing="1" CssClass="border"  BorderWidth="0px"
        onpageindexchanging="DetailsView1_PageIndexChanging" BorderColor="White" 
                      BackColor="White">
        <rowstyle cssclass="tdbg" height="30px" />
        
        <Fields>
            <asp:boundfield DataField="CX_ill_id" HeaderText="编号" 
                InsertVisible="False" ReadOnly="True" SortExpression="CX_ill_id">
            <headerstyle width="100px" />
            <itemstyle width="800px" />
            </asp:boundfield>
            <asp:boundfield DataField="CX_ill_Name" HeaderText="姓名" 
                SortExpression="CX_ill_Name"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_Age" HeaderText="年龄" 
                SortExpression="CX_ill_Age"></asp:boundfield>
            <asp:templatefield HeaderText="结婚" SortExpression="CX_ill_marry">
                <edititemtemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CX_ill_marry") %>'></asp:TextBox>
                </edititemtemplate>
                <insertitemtemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CX_ill_marry") %>'></asp:TextBox>
                </insertitemtemplate>
                <itemtemplate>
                    
                    <input id="Checkbox1" type="checkbox"  checked="<%# ISMarry(Eval("CX_ill_marry").ToString()) %>"/>
                    
                </itemtemplate>
            </asp:templatefield>
            <asp:boundfield DataField="CX_ill_job" HeaderText="工作" 
                SortExpression="CX_ill_job"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_Address" HeaderText="联系地址" 
                SortExpression="CX_ill_Address"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_post" HeaderText="邮编" 
                SortExpression="CX_ill_post"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_Tel" HeaderText="电话" 
                SortExpression="CX_ill_Tel"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_date" HeaderText="发病日期" 
                SortExpression="CX_ill_date"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_pwd" HeaderText="密码" 
                SortExpression="CX_ill_pwd"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_ZhenLiao" HeaderText="即往诊断" 
                SortExpression="CX_ill_ZhenLiao"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_course" HeaderText="发病经过" 
                SortExpression="CX_ill_course"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_Process" HeaderText="诊断过程" 
                SortExpression="CX_ill_Process"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_story" HeaderText="主要病情" 
                SortExpression="CX_ill_story"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_check" HeaderText="相关检查" 
                SortExpression="CX_ill_check"></asp:boundfield>
            <asp:boundfield DataField="CX_ill_other" HeaderText="其    它" 
                SortExpression="CX_ill_other"></asp:boundfield>
        </Fields>
        <headerstyle width="100px" />
        <alternatingrowstyle width="10%" CssClass="tdbg" />
    </asp:DetailsView></div>
            </td>
        </tr>
    </table>
    
    </asp:Content>

